# value attribute syntax

Use the following syntax to specify the value attribute (state):

`value="integer"`

where integer is a number from -2147483648 through 2147483647.

For the momentaryButton object, the value attribute only applies if the buttonAction attribute is set to value.

For the controlListSelector and pilotedControlListSelector objects, if the writeOnEnter attribute is true, the value is written to the data source when the operator presses the Enter key. If the writeOnEnter attribute is false, the value is written to the data source when a new state is selected.

## See also

buttonAction attribute

value attribute (state)